home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / editors / pur_c_vi.zoo / makefile < prev    next >
Encoding:
Makefile  |  1992-08-22  |  2.4 KB  |  97 lines

  1. # Makefile for my modified stevie, that can be compiled with PURE_C.
  2. # Kees Lemmens; 13-aug-92; lemmens@dv.twi.tudelft.nl
  3.  
  4. # a few remarks :
  5.  
  6. #- PURE_C uses tos.h instead of osbind.h, so this code cannot compile without
  7. #  a trick: create a file osbind.h in the compilers search path with only one
  8. #  line : #include <tos.h> and everything will work.
  9. #- For those who prefer the PURE_C shell : I also added a PURE_C project file
  10. #  that can be used.
  11. #- The TMPDIR variable must be specified: fastest solution is a RAM disk
  12. #- You will have to adapt the SHELL variable (only if it points to the wrong
  13. #  directory) if you want to use this makefile.
  14. #
  15.  
  16. # My modifications to the original source (stvisrc.arc)
  17.  
  18. # vt100 mode is now supported without using TERMCAP (reads TERM variable)
  19. # This is convenient on a modemline because most of the terminal progs work
  20. # in vt100 mode. (if TERM is not set vt52 code is used)
  21.  
  22. # Cursconf is removed: this doesn;t work under a multitasking window system
  23. # like mint ! It causes an irritating flashing cursor on the window screen.
  24.  
  25. # The slash that was added after the drivename is removed so that also
  26. # filenames in the current directory could be specified.
  27.  
  28. # System scans for LINES and COLUMNS variables and uses them to determine
  29. # the vi work screen.
  30.  
  31.  
  32. .SUFFIXES: .o .c
  33.  
  34. PCC = d:\pure_c
  35. PCL = $(PCC)\lib
  36.  
  37. CC    = $(PCC)\pcc.ttp
  38. LD    = $(PCC)\plink.ttp
  39. SHELL = d:\usr\bin\tcsh.ttp
  40.  
  41. CFLAGS  = -I$(PCC)\include -I$(PCC)\werk\h
  42. LDLST    = $(TMPDIR)\libs.lst
  43. LDFLAGS = -C=$(LDLST)
  44. STDLIB  = $(PCL)\pcbgilib.lib $(PCL)\pcfltlib.lib $(PCL)\pcstdlib.lib
  45. GEMLIB  = $(PCL)\pcextlib.lib $(PCL)\pctoslib.lib $(PCL)\pcgemlib.lib
  46. LDLIBS  = $(PCL)\pcstart.o $(STDLIB) $(GEMLIB)
  47.  
  48. COMPILE = $(CC) $(CFLAGS) $<
  49. LINK    = @echo -O=$@ $(LDLIBS) $*.o >$(LDLST); $(LD) $(LDFLAGS)
  50. # Pure Linker truncates long commandlines, so we need a temporary file !!
  51.  
  52. .c.o:
  53.     $(COMPILE)
  54.  
  55. .o:
  56.     @echo -O=$@.ttp $(LDLIBS) $< >$(LDLST)
  57.     $(LD) $(LDFLAGS)
  58. .c:
  59.     $(COMPILE)
  60.     @echo -O=$*.ttp $(LDLIBS) $*.o >$(LDLST)
  61.     $(LD) $(LDFLAGS)
  62.  
  63. .o.ttp .o.tos .o.prg:
  64.     $(LINK)
  65.  
  66. .c.ttp .c.tos .c.prg:
  67.     $(COMPILE)
  68.     $(LINK)
  69.  
  70. OBJ = main.o edit.o linefunc.o normal.o window.o \
  71.       cmdline.o hexchars.o misccmds.o help.o
  72.  
  73. stevie:    $(OBJ)
  74.     @echo -O=stevie.ttp $(LDLIBS) $(OBJ) >$(LDLST)
  75.     $(LD) $(LDFLAGS)
  76.  
  77. clean:
  78.     rm -f *.o
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.